package app1.rapidsquare.com.core;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

import app1.rapidsquare.com.activity.R;

/**
 * Created by Hikmat on 09.09.2014.
 */
public class HelveticaTextView extends TextView {

//    private static String FONT_PATH = "fonts/HELVETICANEUE.TTF";

    public HelveticaTextView(Context context) {
        super(context);
    }

    public HelveticaTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        FontUtil.setFont(this, attrs, R.styleable.ViewWithFont, R.styleable.ViewWithFont_font, R.styleable.ViewWithFont_fontBold);
    }

    /*public HelveticaTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        initFont(attrs.getStyleAttribute());
    }

    private void initFont(int defStyle) {
        if (!isInEditMode()) {
            Typeface font = Typeface.createFromAsset(getContext().getAssets(), FONT_PATH);
            setTypeface(font, defStyle);
        }
    }*/
}
